﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EBA.Framework
{
    /// <summary>
    /// 插件接口
    /// </summary>
    public interface IBundle
    {
        /// <summary>
        /// 插件运行上下文
        /// </summary>
        IBundleContext BundleContext { get; set; }

        /// <summary>
        /// 启动路径
        /// </summary>
        string StartupPath { set; }

        /// <summary>
        /// 启动
        /// </summary>
        void Start();
        /// <summary>
        /// 停止
        /// </summary>
        void Stop();

        /// <summary>
        /// 标识
        /// </summary>
        string Id { get; }
        /// <summary>
        /// 名称
        /// </summary>
        string Name { get; }

        /// <summary>
        /// 描述
        /// </summary>
        string Description { get; }

        /// <summary>
        /// 版本信息
        /// </summary>
        Version Version { get; }

        /// <summary>
        /// 运行状态
        /// </summary>
        BundleState State { get; }
    }
}
